<!DOCTYPE html>
<html>

<!-- Mirrored from www.zi-han.net/theme/hplus/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:16:41 GMT -->
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>{block name="title"}{/block}</title>

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

    <link rel="stylesheet" href="/static/plugins/bootstrap-3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/plugins/font-awesome-4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/plugins/bootstrap-table/bootstrap-table.css">
    <!--<link rel="stylesheet" href="/static/plugins/dataTables/dataTables.bootstrap.css">-->
    <link rel="stylesheet" href="/static/plugins/layer/skin/layer.css">
    <link rel="stylesheet" href="/static/plugins/layer/skin/layer.ext.css">
    <link rel="stylesheet" href="/static/plugins/layer/laydate/need/laydate.css">
    <link rel="stylesheet" href="/static/plugins/layer/laydate/skins/default/laydate.css">
    
    <script src="/static/plugins/jquery-2.1.4/jquery.min.js"></script>
    <script src="/static/plugins/bootstrap-3.3.7/js/bootstrap.min.js"></script>
    <script src="/static/plugins/layer/layer.min.js"></script>
    <script src="/static/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="/static/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <script src="/static/plugins/layer/laydate/laydate.js"></script>

    {block name="css"}{/block}
    <style>
        .text-red{color:red;}
        .text-green{color:#17bb46;}
        .text-orange{color:orange;}
        .text-yellow{color:#c7cd2f;}
        .text-blue{color:#0bb8c8;}
        .text-warning{color:orangered}
        .text-danger{color:#f90902}
        .fixed-table-toolbar .bars, .fixed-table-toolbar .columns, .fixed-table-toolbar .search{margin-top:-45px;}
        .th-inner{color:#555;}
    </style>

</head>

<body class="gray-bg">
    {block name="content"}{/block}
</body>
    <script>
        //##############      权限验证是否显示      ##############
        // 权限验证，是否显示按钮
        var permission_cache = {};
        function is_show(route){
            var cache = $.data(permission_cache, route);
            if (typeof cache !== 'undefined') { // 设置了缓存
                return cache;
            } else { // 没有设置缓存，先走ajax再缓存结果
                var flag = ajax_check(route);
                $.data(permission_cache, route, flag);
                return flag;
            }
        }

        // ajax去请求权限判断是否显示
        function ajax_check(route) {
            var flag = false;
            $.ajax({
                type:'POST',
                url:"<?php echo url('manager/site/js_permission_check'); ?>",
                data:{route:route},
                async:false,
                success:function(res){
                    if (res.code) {
                        flag = true;
                    }
                }
            });
            return flag;
        }
        //#############       权限验证结束      #############
    </script>
    {block name="javascript"}
    {/block}
<!-- Mirrored from www.zi-han.net/theme/hplus/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:17:11 GMT -->
</html>
